home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / xgopher.1.3 / compatR4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  2.4 KB  |  76 lines

  1. /* compatR4.h
  2.    Some defines for compatability with X11R4 */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19.  
  20. #ifndef COMPATR4_H
  21. #define COMPATR4_H
  22.  
  23.  
  24. #include <X11/Intrinsic.h>
  25.  
  26. #ifndef XtSpecificationRelease
  27.     /* I can't tell what version of X this is.
  28.        Please confirm that you are using X11R5 or else
  29.        use #define to define the symbol XGOPHER_X11R4. */
  30. #else
  31.  
  32. #if XtSpecificationRelease < 5
  33. #define XGOPHER_X11R4
  34. #endif
  35.  
  36. #if XtSpecificationRelease < 4
  37.     DO NOT COMPILE XGOPHER WITH A VERSION OF X EARLIER THAN X11R4
  38. #endif
  39.  
  40. #endif
  41.  
  42. #include <X11/Xaw/Form.h>
  43.  
  44. #ifdef XGOPHER_X11R4
  45.     /*
  46.         #define XawChainBottom    XtChainBottom
  47.         #define XawChainTop    XtChainTop
  48.         #define XawChainLeft    XtChainLeft
  49.         #define XawChainRight    XtChainRight
  50.         #define XtRubber    XawRubber
  51.     */
  52.  
  53. /* for pure R4 or R5 libraries I shouldn't need to be so picky
  54.    in these tests.  But at least one SGI machine had some mixed
  55.    R5 include files in with a mostly X11R4 system.  What a mess. */
  56.  
  57.  
  58. #if !defined(XawChainBottom) && !defined(XtChainBottom)
  59. #define XawChainBottom  XtChainBottom
  60. #endif
  61. #if !defined(XawChainTop) && !defined(XtChainTop)
  62. #define XawChainTop     XtChainTop
  63. #endif
  64. #if !defined(XawChainLeft) && !defined(XtChainLeft)
  65. #define XawChainLeft    XtChainLeft
  66. #endif
  67. #if !defined(XawChainRight) && !defined(XtChainRight)
  68. #define XawChainRight   XtChainRight
  69. #endif
  70. #if !defined(XawRubber) && !defined(XtRubber)
  71. #define XtRubber        XawRubber
  72. #endif
  73. #endif /* XGOPHER_X11R4 */
  74.  
  75. #endif /* COMPATR4_H */
  76.